sum = 0
for x in range(1, 101):
    if x % 10 != 5:
        sum += x
print(sum)
